package com.tanxh.sss;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
import org.springframework.session.data.redis.config.annotation.web.server.EnableRedisWebSession;

@SpringBootApplication
@EnableRedisHttpSession
public class SssApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
//        return super.configure(application);
        return application.sources(SssApplication.class);
    }

    public static void main(String[] args) {
        try{
            SpringApplication.run(SssApplication.class, args);
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
